ogmini - Exploration of DFIR

Having fun while learning about and pivoting into the world of DFIR.


About Blog Research CTF/Challenge GitHub RSS
28 March 2025

SSH Artifacts in Windows 11 - Part 3

by ogmini

Continuing from yesterday’s post, we are looking at how to tell if someone is connected via SSH. I did not have time to look at SSH Tunnels. Please refer back to the main post for full details as this post will only talk about the tests and results.

Active Connections

While an SSH connection is active lets see what is visible. Unlike Debian, the Windows alternative to the who and w command shows us no useful information. By looking at the “Users” tab in Task Manager, we can see all users accounts that are currently logged into the computer. In the screenshot below, we only see the “User” that we logged into the server Windows machine and no “User” account for the SSH connection.

users

Running netstat shows us the active SSH connection on port 22.

netstat

If we look at the “Processes” tab in Task Manager, there is an sshd process and when there is an active SSH connection it will have 4 child processes as in the first screenshot below. One of the sshd processes is the parent one and so for every active SSH connection there will be:

  • 1 Console Window Host process
  • 2 sshd processes
  • 1 Windows Command Processor process

The second screenshot below shows what happens when there are two active SSH connections.

sshd-connected

sshd-connected-multi

A nicer hierarchical view is given by user Process Explorer.

process_explorer

tags: sunday funday - challenge